<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<jsp:include page="../../base.jsp"></jsp:include>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>管理页面</title>
	<script>
		function addUser() {
			$('#main').attr("src","../jsp/user/addUser.jsp");
		}
		function userList() {
			$('#main').attr("src","../jsp/user/userList.jsp");
		}
		function addNews() {
			$('#main').attr("src","../jsp/news/addNews.jsp");
		}
		function newsList() {
			$('#main').attr("src","../jsp/news/newsList.jsp");
		}
	</script>
</head>
<body class="easyui-layout">
	<c:if test="${userInfo == null }">
		<jsp:forward page="../../index.jsp"></jsp:forward>
	</c:if>

	<div region="north" border="false" style="height:60px;background:#B3DFDA;">
		<label>
			<font size="50px;">
				欢迎${userInfo.userName }
			</font>
		</label>
	</div>
	<div region="west" split="true" title="West" style="width:150px;padding:10px;">
		<div id="aa" class="easyui-accordion" style="height:500px;">
			<div title="用户管理" style="overflow:auto;padding:10px;" selected="true">
				<a href="#" class="easyui-linkbutton" onclick="addUser();">添加用户</a><br /><br />
				<a href="#" class="easyui-linkbutton" onclick="userList();">用户列表</a><br /><br />
			</div>
			<div title="新闻管理" style="padding:10px;">
				<a href="#" class="easyui-linkbutton" onclick="addNews();">添加新闻</a><br /><br />
				<a href="#" class="easyui-linkbutton" onclick="newsList();">新闻列表</a><br /><br />
			</div>
		</div>
		
	</div>
	<div region="south" border="false" style="height:50px;background:#A9FACD;padding:10px;">
		XXX制作
	</div>
	<div region="center" title="Main Title">
		<iframe style="width: 99%; height: 99%;" id="main" src="../jsp/user/addUser.jsp">
		
		</iframe>
	</div>
</body>
</html>